#!/bin/bash
killall -9 java
javasrc=/root/lzh/git
cd $javasrc
cd note
git pull
mvn package
nohup java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8084 -jar target/note-0.0.1-SNAPSHOT.jar > ${javasrc}/java.log 2>&1 &
tailf ${javasrc}/java.log